package com.weixing.mall.provider.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/6 17:46
 * @Modified By:
 */

@NoArgsConstructor
public enum MsgFlagEnum implements IBaseEnum<String> {
    SUCCESS("SUCCESS","成功返回用户信息"),

    FAIL("FAIL","用户名或密码错误"),

    EXCEPTION("EXCEPTION","用户服务请求超时或不可用"),
        ;

    private String value;
    private String desp;

    MsgFlagEnum(String value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
